package com.luisliuyi.demo.hook.ams;

import android.app.Application;
import android.content.Context;

public class MyApplication extends Application {
    private static Context instance;

    public static Context getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        HookUtils hookUtils = new HookUtils(ProxyActivity.class);
        try {
            hookUtils.hookAms(this);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
